<?php

namespace App\Models;

class EwLiveRecord extends BaseModel
{

    /**
     *
     * @var integer
     * @Primary
     * @Identity
     * @Column(type="integer", length=20, nullable=false)
     */
    public $id;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $video_id;

    /**
     *
     * @var string
     * @Column(type="string", length=128, nullable=false)
     */
    public $title;

    /**
     *
     * @var string
     * @Column(type="string", length=128, nullable=false)
     */
    public $thumb;

    /**
     *
     * @var integer
     * @Column(type="integer", length=20, nullable=false)
     */
    public $member_id;

    /**
     *
     * @var string
     * @Column(type="string", length=128, nullable=false)
     */
    public $avatar;

    /**
     *
     * @var string
     * @Column(type="string", length=50, nullable=false)
     */
    public $nickname;

    /**
     *
     * @var double
     * @Column(type="double", length=10, nullable=false)
     */
    public $lon;

    /**
     *
     * @var double
     * @Column(type="double", length=10, nullable=false)
     */
    public $lat;

    /**
     *
     * @var string
     * @Column(type="string", length=128, nullable=false)
     */
    public $address;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=false)
     */
    public $room_id;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=false)
     */
    public $watch_count;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=false)
     */
    public $time_span;

    /**
     *
     * @var string
     * @Column(type="string", nullable=false)
     */
    public $create_time;

    /**
     *
     * @var string
     * @Column(type="string", nullable=false)
     */
    public $update_time;

    /**
     *
     * @var integer
     * @Column(type="integer", length=1, nullable=true)
     */
    public $is_live;

    /**
     *
     * @var integer
     * @Column(type="integer", length=1, nullable=true)
     */
    public $is_del;

    /**
     *
     * @var string
     * @Column(type="string", length=2000, nullable=true)
     */
    public $vod;



    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'ew_live_record';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return EwLiveRecord[]|EwLiveRecord
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return EwLiveRecord
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

}
